<!DOCTYPE html>
<html lang="en">
<head>
<meta name="viewport" content="width=device-width, minimum-scale=1, initial-scale=1, maximum-scale=1, user-scalable=no" charset="UTF-8">
<link rel="stylesheet" href="android_asset://css/style.css" />
<link rel="stylesheet" href="android_asset://css/font.css" />
<script src="android_asset://jquery-1.11.0.min.js" type="text/javascript"></script>
<script src="android_asset://bridge.js" type="text/javascript"></script>
<script src="android_asset://android.js" type="text/javascript"></script>
<script type="text/javascript">
$(function(){
	   $(".confirm .btn").click(function(){
			if($.trim($("#backreasonapp").val())==''){
			  	msAndroid.toast($("#backreasonapp").attr("placeholder"));
			  	return;
			}
			if($("#backreasonapp").val().length>200){
				msAndroid.toast("退单说明不能多于200字");
				return;
			}
		    var json=msAndroid.changedTicketVO("#form");
		    var url=$("#form").attr("action");
		    msAndroid.post(url,json,"put","receive");
		    //禁止页面二次提交
	 		this.disabled = true;
	   });
 }); 
</script>
<title>申请退单</title>
</head>
<body style="background: #f0f0f0;">
	<div class="title_hint">退单前，建议您先联系项目组成员</div>
	<div class="equipment_panel">
	{% for engineer in engineerVOs %}
		<ul class="vessel_ul">
			<li style="border: 0px;">
				<ol class="ol_title">{{engineer.name}}</ol>
				<ol class="ol_content">{{engineer.phone}}</ol>
				<ol class="ol_icon ">
					<span class="icon_vessel">
					<span class="icon-phone" onclick="msAndroid.call('{% if engineer.phone is not null %}{{engineer.phone}}{% endif %}')"></span>
					</span>
				</ol>   
			</li>
			<li class="li_brief">{{engineer.desc}}</li>
		</ul>
	{% endfor %}
	</div>
	<label class="left control-label" style="width: 100%;height:2em;padding-left: 1em;background: white;line-height: 2em;">退单说明<span>最多200字</span></label>
	<form id="form" action="/tickets/{{ticketId}}/reject">
		<div class="describe">
			<textarea style="padding: .5em 1em; width: 100%;" id="backreasonapp" name="backreasonapp" placeholder="请填写退单说明" cols="30" rows="8"></textarea>
		</div>
	</form>
	<div class="confirm">
		<button type="button" class="btn"><a href="javascript:;">确认</a></button>
	</div>
</body>
</html>